package com.fanqiechaodan.bridge;

/**
 * @author fanqiechaodan
 * @Classname Payment
 * @Description 抽象化角色;支付抽象类
 */
public abstract class Payment {

    protected PaymentImplementor implementor;

    public Payment(PaymentImplementor implementor) {
        this.implementor = implementor;
    }

    /**
     * 支付
     *
     * @param amount
     */
    public abstract void pay(double amount);
}
